Return to doc.sitecore.com

Valid for Sitecore 5.3
Installation Guide (Sitecore 5.3)

Oracle Data Provider Installation Guide for Sitecore 5.3.

1.  Requirements

2.  Installing the Package

Unpack the ZIP package on the web server over an existing Sitecore site.

It may be necessary to copy the /install folder to the database server to install Sitecore databases.

The /install folder in the installation package also contains the following files:

 

3.  Database Server Configuration

Database Server Configuration Instructions.

3.1.  Preparing the Server

  1. Install Oracle Database Server.
    Please refer to Oracle documentation towards this step.
  2. Create new Oracle database instance.
    Database for Sitecore schemas should be created. You can use built-in Database Configuration Assistant for this purpose.
    /upload/sdn5/tools/oracle data provider/oracle_installation1.png
    /upload/sdn5/tools/oracle data provider/oracle_installation2.png
    Modify database parameters on following steps (you can disable all additional features since they are not needed for Sitecore).
    It’s recommended to change the default password values (the wizard will prompt you to do this).

3.2.  Installing Sitecore

Oracle connector comes with a set of installation scripts and data files which can be found in the /install folder of the installation package.

By default, scripts connect to Oracle using the following connection string: system/manager@sitecore. It is possible to change this behavior by passing command-line arguments to the *.bat files.

By using files in the /install folder it is possible either to install default Sitecore databases from the package or copy data from existing MS SQL Server installation.

Important Performance Note:

ODP.NET provider used by Sitecore Oracle data provider sets the TraceLevel system registry value to 3 by default which causes the ODP.NET to write traces on each command. This takes up about 40% of processing time. Set this value to 0 to speed up the provider. The path to the key is HKEY_LOCAL_MACHINE/SOFTWARE/ORACLE/ODP.NET, the value name is TraceLevel.

You can also run /install/odpnet.reg file supplied with the installation archive to update the system registry automatically.

3.2.1.  Installing Default Sitecore Databases

Creating and populating schemas for Sitecore is necessary to execute the createdata.bat file in the /install folder. The usage is:

createdata.bat [DATABASE] [PASSWORD] [PREFIX]  

createdata.bat understands the following environment variables and command line parameters:  

DATABASE

TNS Service name to access Oracle (default: sitecore)

PASSWORD

Password for system user in the database (default: manager)

ORACLE_DATA_DIR

Path to Oracle data storage folder (default: D:\Oracle\oradata). The script will create the tablespace data file in %ORACLE_DATA_DIR%\%DATABASE% folder.

PREFIX

Prefix for schemas (default: sc)

It is possible to install multiple instances of Sitecore onto a single Oracle database by setting different prefixes during import.

Notes:

3.2.2.  Copying Existing MS SQL Database to Oracle

3.2.2.1.  Creating Empty Schemas for Sitecore

Empty schemas for Sitecore can be created by running the createschema.bat script in the /install folder. The usage is:

createschema.bat [DATABASE] [PASSWORD] [PREFIX] [TBS]  

createschema.bat understands the following environment variables and command line parameters:  

DATABASE

TNS Service name to access Oracle (default: sitecore)

PASSWORD

Password for system user in the database (default: manager)

ORACLE_DATA_DIR

Path to Oracle data storage folder (default: D:\Oracle\oradata). The script will create tablespace data file in %ORACLE_DATA_DIR%\%DATABASE% folder.

PREFIX

Prefix for schemas (default: sc)

By setting different prefixes during import it is possible to install multiple instances of Sitecore onto a single Oracle database.

TBS

Name of the tablespace to create user schemas in. (default:sitecore)

Parameters for creating the tablespace can be set in createtablespace.sql

3.2.2.2.  Transferring Data from MS SQL to Appropriate Schemas

To transfer existing data from MS SQL, you should use the OracleTransferTool program which is located in the /install/mssql2oracle folder.  

Here are the steps to follow for data migration from MS SQL to the Oracle database:

  1. Run OracleTransferTool.
  2. Input MS Sql server connection data: server name, user credentials, prefix and suffix of database names.
  3. Input TNS Service name for the database with Sitecore schemas and prefix for user schemas (default:sc).
  4. Click the "Transfer DB" button.

4.  Web Server Configuration

  1. Install Oracle Windows Client on the web server.
    Please refer to Oracle documentation towards this step.
  2. Install ODP.NET data provider.
    http://www.oracle.com/technology/software/htdocs/distlic.html?/technology/software/tech/windows/odpnet/utilsoft.html
  3. Configure Oracle client.
    Add an appropriate TNS name into your configuration. You can use Net Configuration Assistant from Oracle client tools or modify the file <orahome>/network/admin/tnsnames.ora file.
  4. Configure Sitecore.
    Modify the /App_Config/Oracle/ServerConnections.config file. Change attributes of the <connections> element as follows:

          Modify the web.config file. Set attributes as follows:

              <sitecore database="Oracle">

           ...

              <connections serverMode="Server">

5.  Upgrade Instructions

Upgrading Oracle DataProvider from v3.1.0 to v3.2.0.

Follow the steps below to upgrade the module: 

  1. Backup the existing Oracle database 
     
  2. Run the following script from the /install folder:
    Upgrade310to320.bat <dbname> [prefix]
    ([prefix] is the optional parameter)
     
  3. Replace Sitecore.Oracle.dll in the /bin folder  

Upgrading Oracle DataProvider from v3.0.0 to v3.1.0.

Follow the steps below to upgrade the module: 

  1. Backup the existing Oracle database
     
  2. Run the following script from the /install folder:
    Upgrade.bat <dbName> <prefix>
     
  3. Replace Sitecore.Oracle.dll in the /bin folder